package com.allinpokers.vest.allinvest.enu;

import lombok.Getter;

@Getter
public enum ResponseCodeEnum {
    /**
     *
     */
    SUCCESS(0, "请求成功"),
    ERROR(-1, "请求失败"),
    PARAM_ERROR(2, "参数错误"),
    RECORD_NOT_EXIST(3, "记录不存在"),

    JSON_FAIL(3003,"json转换失败"),
    DATA_HAS_EXIST(3009,"记录已经存在"),
    ;
    private final int code;
    private final String msg;

    ResponseCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
